import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'use-basic',
  templateUrl: './use.component.html',
  styleUrls: ['./use.component.css']
})
export class UseComponent {
  constructor() {}
  panels = [
    {
      active: true,
      name: '绑卡事件策略集',
      childPanel: [
        {
          active: false,
          name: 'This is panel header 1-1'
        }
      ]
    },
    {
      active: false,
      name: '某某某'
    },
    {
      active: false,
      name: '获取通讯录事件策略集'
    }
  ];

  isVisible = false;
  ngOnInit() {
  }
  showModal = () => {
    this.isVisible = true;
  }

  handleOk = (e) => {
    console.log('点击了确定');
    this.isVisible = false;
  }

  submitForm ():void {

  }

  handleCancel = (e) => {
    console.log(e);
    this.isVisible = false;
  }
}
